//
//  LcWeakReference.m
//  18Birdies
//
//  Created by Lc on 15/4/13.
//  Copyright (c) 2015年 Lc. All rights reserved.
//

#import "LcPreconditions.h"
#import "LcWeakReference.h"

@implementation LcWeakReference

- (instancetype)initWithObject:(id)object {
  LC_CHECK_NOT_NULL(object);
  self = [super init];
  if (self) {
    self->_object = object;
  }
  return self;
}

+ (LcWeakReference*)weakReferenceWithObject:(id)object {
  LC_CHECK_NOT_NULL(object);
  return [[self alloc] initWithObject:object];
}

@end
